//
//  RPUserInfoBean.m
//  yilutongxing
//
//  Created by 赵继申 on 17/3/11.
//  Copyright © 2017年 YZE. All rights reserved.
//

#import "RPUserInfoBean.h"

@implementation RPUserInfoBean
//主键
//+(NSString *)getPrimaryKey
//{
//    return @"id";
//}
- (void)setValue:(id)value forKey:(NSString *)key{
    
    //手动处理description
    if ([key isEqualToString: @"id"]) {
        
        _ID = value;
    }else{
        
        //调用父类方法，保证其他属性正常加载
        [super setValue:value forKey:key];
    }
}
//表名
+(NSString *)getTableName
{
    return @"UserInfo";
}

- (RPUserInfoProvinceBean *)province{
    if (!_province) {
        _province = [RPUserInfoProvinceBean new];
    }
    return _province;
}

- (RPUserInfoCityBean *)city{
    if (!_city) {
        _city = [RPUserInfoCityBean new];
    }
    return _city;
}

- (RPUserinfoDistrictBean *)district{
    if (!_district) {
        _district = [RPUserinfoDistrictBean new];
    }
    return _district;
}

- (RPUserIdInfoBean *)user{
    if (!_user) {
        _user = [RPUserIdInfoBean new];
    }
    return _user;
}

- (RPUserIdInfoBean *)reply{
    if (!_reply) {
        _reply = [RPUserIdInfoBean new];
    }
    return _reply;
}

- (NSDictionary *)grafting{
    if (!_grafting) {
        _grafting = [NSMutableDictionary dictionary];
    }
    return _grafting;
}

- (NSMutableDictionary *)hospital{
    if (!_hospital) {
        _hospital = [NSMutableDictionary dictionary];
    }
    return _hospital;
}


@end
